<?php

session_name();
session_start(); // Initialize Session data
ob_start(); // Turn on output buffering
//ob_start("ob_gzhandler");
error_reporting(E_ALL);
ini_set('display_errors', '1');

include "portal/ewcfg7.php";
include "portal/ewmysql7.php";
include "portal/phpfn7.php";
include "userfn.php";


header("Expires: Mon, 26 Jul 1997 05:00:00 GMT"); // Date in the past
header("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT"); // Always modified
header("Cache-Control: private, no-store, no-cache, must-revalidate"); // HTTP/1.1
header("Cache-Control: post-check=0, pre-check=0", false);
header("Pragma: no-cache"); // HTTP/1.0
header("Connection: Keep-Alive");
header("Keep-Alive: timeout=300");

$debug=getParameter("debug");

//header('Content-Type:text/html; charset=UTF-8');
global $conn, $Language, $international, $agencyId, $defaultCountry, $defaultCity,$currentUserLevel,$portalId,$mode;
// Language object
$Language = new cLanguage();
$GLOBALS["gsTimer"] = new cTimer();

// Open connection
$conn = ew_Connect();


if (getParameter("remove")=="ok")
{
    emptyDatabase();

}
?>